package com.damai.action.quartz;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.damai.plugins.BaseJob;

public class QuartzModelJob extends BaseJob {
	
	
	public static final String JOB_INFO = "JOB_INFO";

	@Override
	protected void doJob(JobExecutionContext context) throws JobExecutionException {
		
		QuartzMethodInfo methodInfo = (QuartzMethodInfo) context.getJobDetail().getJobDataMap().get(JOB_INFO);
		
		methodInfo.execute();
		
		//MethodInvoker invoker = 
		//Models.assignModels(target)
	}

}
